/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.iwords.service.ao.impl;

import com.iwords.service.HotSentencesService;
import com.iwords.service.HotSentencesServiceLocal;
import com.iwords.service.object.HotSentencesEntity;
import com.iwords.service.persistence.HotSentencesPersistence;
import java.util.List;
import javax.ejb.EJB;
import javax.ejb.Stateless;

/**
 *
 * @author qianxiang
 */
@Stateless
public class HotSentencesServiceImpl implements HotSentencesService,HotSentencesServiceLocal{
    @EJB
    HotSentencesPersistence hotSentencesPersistence;
    @Override
    public void deleteHost(HotSentencesEntity hotsentences) {
        hotSentencesPersistence.deleteHost(hotsentences);
    }

    @Override
    public List<Long> getAllHotSentences(int toPage) {
        return hotSentencesPersistence.getAllHotSentences(toPage);
    }

    @Override
    public Long getHotCount() {
        return hotSentencesPersistence.getHotCount();
    }

    @Override
    public List<HotSentencesEntity> getHotListByWordId(Long wordid) {
        return hotSentencesPersistence.getHotListByWordId(wordid);
    }

    @Override
    public void insertHost(HotSentencesEntity hotsentences) {
        hotSentencesPersistence.insertHost(hotsentences);
    }

    
    
}
